<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE html>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>删除框</title>
   

  </head>
  
  <body>
	    <div  title="确认框" >
	    
	    	<table >
	    		<tr>
	    			<td>
	    				用户密码:
	    			</td>
	    			
	    			<td>
	    				<input type="password" name="password" id="password" autofocus="autofocus" required="required"/> <input type="button" value="确认删除" onclick="javascript:del();"/> 
	    			</td>
	    		</tr>
	    		
	    		<tr>
	    			<td colspan="4" id="note">
	    			
	    	
	    			
	    			</td>
	    		</tr>
	    	</table>		
	</div>
	 
	
  </body>
  <script type="text/javascript">

  function del(){
	  var url = "<%=basePath %>/manual/dialog/delcontent_manual.action?contentId=<%=request.getParameter("contentId")%>&password="+$('#password').attr('value');
	 
	  $.getJSON(url, function(json){
		  if(json.isSuccess=="true"){			 
			  location.href="<%=basePath %>manual/index.jsp";
		  }else{
			  $("#note").html("<font color='red'>提示:"+json.responseText+"</font>");
		 }
		});
	 }

  </script>
</html>
